package openrr.map;
import openrr.geom.Mesh;

import openrr.GameMain;

public class MapManager {
	public GameMain game;
	
	public MapLoader loader;
	public SoilManager soilManager;
	
	public Tile[][] map;
	public Mesh mapMesh;
	
	public int width;
	public int height;
	
	public String author;
	public String version;
	public String description;
	public String name;
	
	public static final int TILE_SIZE = 30;
	public static final int TILE_HEIGHT = 50;
	
	public MapManager(GameMain gameMain)
	{
		game = gameMain;
		loader = new MapLoader(gameMain, this);
		this.mapMesh = new Mesh();
		game.displayManager.displayList.add(this.mapMesh);
		this.soilManager = new SoilManager(this.mapMesh);
		loader.loadMap("src/res/sampleMap.xml");
	}
}
